/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.coreprincipals.polymorphism.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.coreprincipals.polymorphism.polymorphism.Person;
import za.ac.cput.coreprincipals.polymorphism.polymorphism.impl.EmployeeImpl;
import za.ac.cput.coreprincipals.polymorphism.polymorphism.impl.StudentImpl;

/**
 *
 * @author babalwa
 */
@Configurable
public class AppConfig {
    @Bean(name = "student")
    public Person student(){
        return new StudentImpl(null, null, 0, 0, 0, null);
    }
    
    @Bean(name = "employee")
    public Person employee(){
        return new EmployeeImpl(null, null, 0, 0, 0, 0, 0);
    }
}
